package com.haoshuang.zhouzhoubang.ui.dialog

import android.content.Context


import android.widget.TextView
import com.haoshuang.zhouzhoubang.R


import com.lxj.xpopup.core.BottomPopupView



class YsDialog(context: Context,
               private val content: String,
               private val onSubmit: (str:Int) -> Unit) : BottomPopupView(context){
    override fun getImplLayoutId(): Int = R.layout.dialog_ys

    override fun initPopupContent() {
        super.initPopupContent()


        var tvTy=findViewById<TextView>(R.id.tvTy)
        var tvXy=findViewById<TextView>(R.id.tvXy)
        tvXy.text = content
        tvTy.setOnClickListener {
            dismiss()
            onSubmit(0)
        }

    }


}